package com.feng.chat.pojo;

import io.gitee.zerowsh.actable.annotation.AcColumn;
import io.gitee.zerowsh.actable.annotation.AcTable;
import io.gitee.zerowsh.actable.emnus.ColumnTypeEnums;

import java.time.LocalTime;

@AcTable(name = "talk_records_location",comment = "聊天对话记录（位置消息）")
public class TalkRecordsLocation {
    @AcColumn(name = "id",comment = "ID",type = ColumnTypeEnums.INT,length = 20,isAutoIncrement = true,isKey = true)
    private Integer id;

    @AcColumn(name = "record_id",defaultValue = "0",comment = "消息记录ID",type = ColumnTypeEnums.INT)
    private Integer record_id;

    @AcColumn(name = "user_id",defaultValue = "0",comment = "用户ID",type = ColumnTypeEnums.INT)
    private Integer user_id;

    @AcColumn(name = "longitude", defaultValue = "", comment = "经度", type = ColumnTypeEnums.VARCHAR,length = 20)
    private String longitude;

    @AcColumn(name = "latitude", defaultValue = "", comment = "纬度", type = ColumnTypeEnums.VARCHAR,length = 20)
    private String latitude;

    @AcColumn(name = "created_at", comment = "创建时间", type = ColumnTypeEnums.DATETIME, isNull = true)
    private LocalTime createdAt;
}
